package com.example.practice2023.mapper;

import com.example.practice2023.pojo.Carousel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: CarouselMapper
 * Package: com.example.practice2023.mapper
 * Description:
 *
 * @Author hyx
 * @Create 2023/7/3 20:29
 * @Version 1.0
 */
public interface CarouselMapper {
    List<Carousel> selectByPage(@Param("index") Integer index,
                                @Param("limit") Integer limit,
                                @Param("carousel") Carousel carousel);

    int selectAllCount(Carousel carousel);

    List<Carousel> select();

    void insert(Carousel carousel);

    void updateById(Carousel carousel);

    void updateByStatus(Carousel carousel);

    void deleteById(Integer id);
}
